﻿using Ken_WPF_UI.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace Ken_WPF_UI.Data
{
    public static class MenuData
    {

        public static List<MenuInfo> GetAllMenus()
        {

            List<MenuInfo> list = new List<MenuInfo>();
            //一级菜单
            MenuInfo menu1 = new MenuInfo() { ParentId = 0, MenuId = 1, MenuName = "系统管理", MKey = "100", Foreground = new SolidColorBrush() { Color = Colors.CornflowerBlue } };
            MenuInfo menu2 = new MenuInfo() { ParentId = 0, MenuId = 2, MenuName = "商品管理", MKey = "200" };
            MenuInfo menu3 = new MenuInfo() { ParentId = 0, MenuId = 3, MenuName = "任务管理", MKey = "300" };

            //二级菜单
            MenuInfo menu4 = new MenuInfo() { ParentId = 1, MenuId = 4, MenuName = "用户管理", MKey = "101" };
            MenuInfo menu5 = new MenuInfo() { ParentId = 1, MenuId = 5, MenuName = "角色管理", MKey = "102", Foreground = new SolidColorBrush() { Color = Colors.DarkOrange } };
            MenuInfo menu6 = new MenuInfo() { ParentId = 1, MenuId = 6, MenuName = "地区管理", MKey = "103", Foreground = new SolidColorBrush() { Color = Colors.DarkRed } };


            MenuInfo menu7 = new MenuInfo() { ParentId = 2, MenuId = 7, MenuName = "单位管理", MKey = "201" };
            MenuInfo menu8 = new MenuInfo() { ParentId = 2, MenuId = 8, MenuName = "类别管理", MKey = "202" };

            MenuInfo menu9 = new MenuInfo() { ParentId = 3, MenuId = 9, MenuName = "出库任务", MKey = "301"};
            MenuInfo menu10 = new MenuInfo() { ParentId = 3, MenuId = 10, MenuName = "销售任务", MKey = "302" };

            list.Add(menu1);
            list.Add(menu2);
            list.Add(menu3);
            list.Add(menu4);
            list.Add(menu5);
            list.Add(menu6);
            list.Add(menu7);
            list.Add(menu8);
            list.Add(menu9);
            list.Add(menu10);
            return list;
        }

    }
}
